const Koa = require('koa2');
const Router = require('koa-router');
const app = new Koa();
const router = require('./router/index')
const port = 3000;

app.use(router.routes(), router.allowedMethods());

app.listen(port, ()=>{
    console.log('Server is running at http://localhost:'+port);
})